package com.hongmeng.teamwork.test;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class TenantAccessToken {
    private int code;
    private LocalDateTime expire;
    private String msg;
    @JSONField(name = "tenant_access_token")
    private String tenantAccessToken;

    public void setExpire(Long expire) {
        LocalDateTime now = LocalDateTime.now();
        this.expire = now.plusSeconds(expire);
    }
}
